<?php

class SiteController extends MY_Controller {

    public function __construct() {
        parent::__construct();
        date_default_timezone_set("America/Sao_Paulo");
        $this->layoutFile = 'site/template.php';
        $this->load->library('pagination');
    }

    public function get_assuntos($id_menu_principal) {
        $findBy = array('ativo' => true, 'menu_principal' => $id_menu_principal);
        return $this->doctrine->em->getRepository('Menus')->findBy(
                        $findBy, array('ordem' => 'ASC'), null, null);
    }
    
    public function get_user_fb(){
        return isset($_SESSION[USER_FB]) ? $_SESSION[USER_FB] : null;
    }

}

?>